import 'package:flutter/material.dart';

abstract class BasePage extends StatelessWidget {
  const BasePage({super.key});

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        backgroundColor: Theme.of(context).colorScheme.inversePrimary,
        title: Text(getPageTitle()),
      ),
      body: buildBody(context),
    );
  }

  @protected
  String getPageTitle();

  @protected
  Widget buildBody(BuildContext context);
}